package com.rgs.oauthresource2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class OauthResource2Application {

    public static void main(String[] args) {
        SpringApplication.run(OauthResource2Application.class, args);
    }

    /**
     * 这里搭建一个资源服务
     *
     * 先写两个controller接口
     *
     * 配置项目
     * @Configurable
     * @EnableResourceServer
     * @EnableGlobalMethodSecurity(prePostEnabled = true,jsr250Enabled = true,securedEnabled = true)
     * public class ResourceServerConfig extends ResourceServerConfigurerAdapter {}
     *  * @EnableResourceServer  标注是一个资源服务
     *  * @EnableGlobalMethodSecurity 开启注解校验权限
     *  * 继承ResourceServerConfigurerAdapter
     */

}
